package com.itbupt.controller;

import com.itbupt.dto.Result;
import com.itbupt.service.impl.ShopTypeServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/3 16:12
 * ClassName: ShopTypeController
 * Description:
 */

@Slf4j
@RestController
@RequestMapping("/shopType")
public class ShopTypeController {

    @Autowired
    private ShopTypeServiceImpl typeService;


    @GetMapping("list")
    public Result queryTypeList() {
        return typeService.queryList();
    }
}
